#ifndef MYSQL_CONNECT_FACTORY_H
#define MYSQL_CONNECT_FACTORY_H

#include <stdio.h>
#include <string.h>
#include <stdlib.h>

#include "mysql-connect.h"

typedef struct MysqlConnectFactory MysqlConnectFactory;

// 创建 MYSQL 连接工厂
MysqlConnectFactory *createMysqlConnectFactory(char *ip, char *user, char *password, char *database, int port);

// 销毁 MYSQL 连接工厂
void destroyMysqlConnectFactory(MysqlConnectFactory *factory);

// 创建 MYSQL 连接对象
MysqlConnect *createMysqlConnect(MysqlConnectFactory *factory);

#endif // MYSQL_CONNECT_FACTORY_H